package com.zking.ssm.He.model;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Goods {
    private Integer id;

    private Integer categoryId;

    private String name;

    private Integer views;

    private Short store;

    private Integer collect;

    private BigDecimal price;

    private Long weight;

    private Integer specType;

    private String img;

    private String goodsStatus;

    private Integer deliveryId;

    private Integer sales;

    private Short sort;

    private Integer enabled;

    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date updateTime;

    private String content;

    public Goods(Integer id, Integer categoryId, String name, Integer views, Short store, Integer collect, BigDecimal price, Long weight, Integer specType, String img, String goodsStatus, Integer deliveryId, Integer sales, Short sort, Integer enabled, Date createTime, Date updateTime, String content) {
        this.id = id;
        this.categoryId = categoryId;
        this.name = name;
        this.views = views;
        this.store = store;
        this.collect = collect;
        this.price = price;
        this.weight = weight;
        this.specType = specType;
        this.img = img;
        this.goodsStatus = goodsStatus;
        this.deliveryId = deliveryId;
        this.sales = sales;
        this.sort = sort;
        this.enabled = enabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.content = content;
    }

    public Goods() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public Short getStore() {
        return store;
    }

    public void setStore(Short store) {
        this.store = store;
    }

    public Integer getCollect() {
        return collect;
    }

    public void setCollect(Integer collect) {
        this.collect = collect;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Long getWeight() {
        return weight;
    }

    public void setWeight(Long weight) {
        this.weight = weight;
    }

    public Integer getSpecType() {
        return specType;
    }

    public void setSpecType(Integer specType) {
        this.specType = specType;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(String goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public Integer getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(Integer deliveryId) {
        this.deliveryId = deliveryId;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Short getSort() {
        return sort;
    }

    public void setSort(Short sort) {
        this.sort = sort;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}